<html lang='en'>
<head>
    <meta charset='UTF-8'>
    <meta http-equiv='X-UA-Compatible' content='IE=edge'>
    <meta name='viewport' content='width=device-width, initial-scale=1.0'>
    <title></title>
    <script src='./vue.global.js'></script>
</head>
<body>
    <div id='app'>
        <todo-button>
            Add Todo
        </todo-button>
        <br>

        <todo-button>
            <h3>添加青椒土豆丝</h3>
        </todo-button>
    </div>

    <script>
        const app = Vue.createApp({
            data(){
                return {}
            },
            methods:{},
            computed:{}
        })

        app.component("todo-button",{
            template:`
            <button>
                <slot></slot>
            </button>
            `
        })

        app.mount('#app')
    </script>
</body>
</html>